﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COM.Data;
using SampleApp.Domain;

namespace SampleApp.Data
{
    public interface IAppLogRepository : IRepository<ApplicationLog>
    {
        void Save();
    }

    public class AppLogRepository : AnyRepositoryBase<ApplicationLog>, IAppLogRepository
    {
        public AppLogRepository()
            : base(new DatabaseFactory())
        {
        }

        public void Save()
        {
            this.DataContext.SaveChanges();
        }

    }
}
